package cn.hxlc.tie.demo.modular.zr.equipmentzr.mapper;/*
 @author rui
 @date 2021/6/28 --18:33
*/

import cn.hxlc.tie.demo.modular.zr.equipmentzr.entity.Equipment;
import cn.hxlc.tie.demo.modular.zr.equipmentzr.entity.EquipmentGroup;
import cn.hxlc.tie.demo.modular.zr.equipmentzr.model.param.EquipmentParam;
import cn.hxlc.tie.demo.modular.zr.equipmentzr.model.result.EquipmentResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EquipmentMapper extends BaseMapper<Equipment> {

    IPage<EquipmentResult> queryListPage(@Param("page") Page<EquipmentResult> equipmentPage, @Param("paramCondition") EquipmentParam equipmentParam);

    Boolean batchDelete(@Param("list") List<Integer> ids);

    int batchEdit(@Param("list")List<EquipmentParam> equipmentParam, @Param("status")int code);

    EquipmentResult queryDetail(@Param("fid") Long fid);
}
